<template>
  <!--//读者首页-->
<!--    <div class="background-image-container">-->
<!--    </div>-->
<!--轮播-->
        <el-carousel height="600px">
        <el-carousel-item v-for="item in imgarry" :key="item">
            <img :src="item.url" alt=""/>
        </el-carousel-item>
        </el-carousel>

</template>

<script>

import img1 from "../assets/backimage/202311091857319.jpg";
import img2 from "../assets/backimage/img202411.jpg";

export default {
    name: "homepage",
    data(){
      return{
          imgarry:[
              {url: img1},
              {url:img2},
              // {url:img3},
              // {url:img4},
          ]

      }
    },

}
</script>

<style scoped>
.rightImg{
    width: 100%;
    height: 600px;
    background-color: #1ab394;
}
.background-image-container {
    width: 100%;
    height: 600px;
    background-image: url('https://pic.yupi.icu/5563/202311091857319.jpg');
    background-size: cover;
    background-position: center;
}
.bannerimg{
    width: 100%;
    height: inherit;
}

.el-carousel{
    text-align: center;
}


.el-carousel__item img{

    height: 600px;
}
.el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 60px;
    margin: 0;
}

.el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
}

</style>
